﻿using System.ComponentModel;
using System.IO;
using Buddy.Common.Xml;
using Buddy.XmlEngine;

namespace WingIt
{
    [RevisionControlId("$Id: WingItSettings.cs 684 2012-08-08 10:09:07Z Chinajade $")]
    public class WingItSettings : XmlSettings
    {
        public WingItSettings()
            : base(Path.Combine(Path.Combine(SettingsDirectory, "WingIt"), "WingItSettings.xml"))
        {
        }

        private static WingItSettings _inst;
        public static WingItSettings Instance { get { return _inst ?? (_inst = new WingItSettings()); } }

        [XmlElement("CombatOnly")]
        [DefaultValue(false)]
        public bool CombatOnly { get; set; }

        [XmlElement("ReloadOnLevelUp")]
        [DefaultValue(true)]
        public bool ReloadOnLevelUp { get; set; }

        [XmlElement("ReloadOnSpecChange")]
        [DefaultValue(true)]
        public bool ReloadOnSpecChange { get; set; }
    }
}
